package com.whsxt.sys.service.impl;

import com.whsxt.sys.domain.Permission;
import com.whsxt.sys.mapper.PermissionMapper;
import com.whsxt.sys.service.IPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.io.Serializable;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 贺炯
 * @since 2019-09-21
 */
@Transactional
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

	@Override
	public boolean removeById(Serializable id) {
		PermissionMapper permissionMapper = this.getBaseMapper();
		permissionMapper.removeRolePermission(id);
		return super.removeById(id);
	}
	
	
}
